package com.goodving.guli.model;

import com.goodving.guli.bt.Utils;
import com.goodving.guli.bt.model.ReportData;
import com.goodving.guli.view.C3657a;

/**
 * Created by john on 2015/12/24.
 */
public class UserTotalSportData {
    public int avgSleepEndTime;
    public int avgSleepStartTime;
    public int highestStep;
    public String highestStepDay;
    public int iAverageSteps;
    public int iDistance;
    public int iSteps;
    public int iTotalwearingdays;
    private int lazyDaySkips;
    public String longestSleepDay;
    public int longestSleepDeepMin;
    public int longestSleepMin;
    public int maxContinueRecord;
    public String maxContinueRecordDay;
    private ReportData reportData;

    public String startUseDay;
    public int totalRunDist;
    private ReportData weekReportData;

    public UserTotalSportData() {
        this.startUseDay = C3657a.f18328f;
        this.highestStep = 0;
        this.highestStepDay = C3657a.f18328f;
        this.maxContinueRecord = 0;
        this.maxContinueRecordDay = C3657a.f18328f;
        this.longestSleepDay = C3657a.f18328f;
        this.longestSleepMin = 0;
        this.longestSleepDeepMin = 0;
        this.iDistance = 0;
        this.iTotalwearingdays = 0;
        this.iSteps = 0;
        this.totalRunDist = 0;
        this.iAverageSteps = 0;
        this.avgSleepStartTime = 0;
        this.avgSleepEndTime = 0;
    }

    public static UserTotalSportData fromJsonStr(String str) {
        UserTotalSportData userTotalSportData = (UserTotalSportData) Utils.m8049c().fromJson(str, UserTotalSportData.class);
        return userTotalSportData == null ? new UserTotalSportData() : userTotalSportData;
    }

    public void clear() {
    }

    public int getDistance() {
        return this.iDistance;
    }

    public ReportData getReportData() {
        return this.reportData;
    }

    public ReportData getWeekReportData() {
        return this.weekReportData;
    }

    public boolean isValid() {
        return this.iAverageSteps > 0 && this.iDistance > 0 && this.iTotalwearingdays > 0 && this.weekReportData != null;
    }

    public void setReportData(ReportData reportData) {
        this.reportData = reportData;
    }

    public void setWeekReportData(ReportData reportData) {
        this.weekReportData = reportData;
    }

    public String toString() {
        String b = Utils.m8049c().toJson((Object) this);
        return b == null ? null : b.toString();
    }
}
